package com.daydayup.arraytest;

import java.util.Scanner;

/**
 * Created by Administrator on 2019/4/3/003.
 */
public class Test {

    public static void main(String[] args) {

//        List<String> list = Arrays.asList(new String[]{"a","b"});
//        list.remove(1);

        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        for(int i = 1;i<a;i++){
            if(i<a-1 && a % i == 0){
                System.out.println("合数");
            }else{
                System.out.println("质数");
            }
        }
    }

}
